import request from '@/utils/request'

// 查询随访管理列表
export function listFllowup(query) {
  return request({
    url: '/user/fllowup/list',
    method: 'get',
    params: query
  })
}

// 查询随访管理详细
export function getFllowup(id) {
  return request({
    url: '/user/fllowup/' + id,
    method: 'get'
  })
}

// 新增随访管理
export function addFllowup(data) {
  return request({
    url: '/user/fllowup',
    method: 'post',
    data: data
  })
}

// 修改随访管理
export function updateFllowup(data) {
  return request({
    url: '/user/fllowup',
    method: 'put',
    data: data
  })
}

// 删除随访管理
export function delFllowup(id) {
  return request({
    url: '/user/fllowup/' + id,
    method: 'delete'
  })
}

export function getDetailWithUser(id) {
  return request({
    url: '/user/fllowup/getDetailWithUser/' + id,
    method: 'get'
  })
}
